home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
THINKC
/
4_0
/
STANDALO
/
SHOWINIT
/
INIT.H
< prev
next >
Wrap
Text File
|
1990-07-29
|
1KB
|
45 lines
/*
init.h : Header file for INITs
*/
/* #define APPLICATION */ /* #define if compiling for standalong application */
/* #define INIT_ALL */ /* #define to init all toolbox managers (erase screen) */
#define PERMANENT /* #define to detach ourselves (be sure in sys heap) */
/* CODE_SETUP pushes most registers to the stack and places a copy of
a0 into a4, which will contain a pointer to our own code resource.
*/
#define CODE_SETUP() asm { \
movem.l a0-a5/D0-D7, -(SP) \
move.l a0, a4 \
}
/* CODE_CLEANUP restores most registers from the stack. */
#define CODE_CLEANUP() asm { \
movem.l (SP)+, a0-a5/D0-D7 \
}
/* Quickdraw global variables */
#ifndef APPLICATION
#define GrafSize 206 /* from IM I-209. Total QDraw storage. */
#define ADD_GRAFSIZE (GrafSize - 130) /* 130 bytes in shown fields */
typedef struct
{
char filler[ADD_GRAFSIZE]; /* internal QD storage */
long randSeed;
BitMap screenBits;
Cursor arrow;
Pattern dkGray;
Pattern ltGray;
Pattern gray;
Pattern black;
Pattern white;
GrafPtr thePort;
} QD_GLOBALS;
#endif
#ifndef NULL /* LSC puts this in stdio of all places... */
#define NULL ( (void *)0 )
#endif